﻿// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.AspNetCore.Mvc;

namespace TagHelpersWebSite;

public class CopyrightViewComponent : ViewComponent
{
    public IViewComponentResult Invoke(string website, int year)
    {
        var dict = new Dictionary<string, object>
        {
            ["website"] = website,
            ["year"] = year
        };

        return View(dict);
    }
}
